package com.quanyan.runningriding.entity.db;

import com.quanyan.common.Plugin.Page;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TbRunRecordDetailExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Page page;

    public TbRunRecordDetailExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPage(Page page) {
        this.page=page;
    }

    public Page getPage() {
        return page;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andRunRecordIdIsNull() {
            addCriterion("run_record_id is null");
            return (Criteria) this;
        }

        public Criteria andRunRecordIdIsNotNull() {
            addCriterion("run_record_id is not null");
            return (Criteria) this;
        }

        public Criteria andRunRecordIdEqualTo(Integer value) {
            addCriterion("run_record_id =", value, "runRecordId");
            return (Criteria) this;
        }

        public Criteria andRunRecordIdNotEqualTo(Integer value) {
            addCriterion("run_record_id <>", value, "runRecordId");
            return (Criteria) this;
        }

        public Criteria andRunRecordIdGreaterThan(Integer value) {
            addCriterion("run_record_id >", value, "runRecordId");
            return (Criteria) this;
        }

        public Criteria andRunRecordIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("run_record_id >=", value, "runRecordId");
            return (Criteria) this;
        }

        public Criteria andRunRecordIdLessThan(Integer value) {
            addCriterion("run_record_id <", value, "runRecordId");
            return (Criteria) this;
        }

        public Criteria andRunRecordIdLessThanOrEqualTo(Integer value) {
            addCriterion("run_record_id <=", value, "runRecordId");
            return (Criteria) this;
        }

        public Criteria andRunRecordIdIn(List<Integer> values) {
            addCriterion("run_record_id in", values, "runRecordId");
            return (Criteria) this;
        }

        public Criteria andRunRecordIdNotIn(List<Integer> values) {
            addCriterion("run_record_id not in", values, "runRecordId");
            return (Criteria) this;
        }

        public Criteria andRunRecordIdBetween(Integer value1, Integer value2) {
            addCriterion("run_record_id between", value1, value2, "runRecordId");
            return (Criteria) this;
        }

        public Criteria andRunRecordIdNotBetween(Integer value1, Integer value2) {
            addCriterion("run_record_id not between", value1, value2, "runRecordId");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(String value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(String value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(String value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(String value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(String value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(String value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLike(String value) {
            addCriterion("user_id like", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotLike(String value) {
            addCriterion("user_id not like", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<String> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<String> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(String value1, String value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(String value1, String value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andCaloriesIsNull() {
            addCriterion("calories is null");
            return (Criteria) this;
        }

        public Criteria andCaloriesIsNotNull() {
            addCriterion("calories is not null");
            return (Criteria) this;
        }

        public Criteria andCaloriesEqualTo(Double value) {
            addCriterion("calories =", value, "calories");
            return (Criteria) this;
        }

        public Criteria andCaloriesNotEqualTo(Double value) {
            addCriterion("calories <>", value, "calories");
            return (Criteria) this;
        }

        public Criteria andCaloriesGreaterThan(Double value) {
            addCriterion("calories >", value, "calories");
            return (Criteria) this;
        }

        public Criteria andCaloriesGreaterThanOrEqualTo(Double value) {
            addCriterion("calories >=", value, "calories");
            return (Criteria) this;
        }

        public Criteria andCaloriesLessThan(Double value) {
            addCriterion("calories <", value, "calories");
            return (Criteria) this;
        }

        public Criteria andCaloriesLessThanOrEqualTo(Double value) {
            addCriterion("calories <=", value, "calories");
            return (Criteria) this;
        }

        public Criteria andCaloriesIn(List<Double> values) {
            addCriterion("calories in", values, "calories");
            return (Criteria) this;
        }

        public Criteria andCaloriesNotIn(List<Double> values) {
            addCriterion("calories not in", values, "calories");
            return (Criteria) this;
        }

        public Criteria andCaloriesBetween(Double value1, Double value2) {
            addCriterion("calories between", value1, value2, "calories");
            return (Criteria) this;
        }

        public Criteria andCaloriesNotBetween(Double value1, Double value2) {
            addCriterion("calories not between", value1, value2, "calories");
            return (Criteria) this;
        }

        public Criteria andAvgPaceIsNull() {
            addCriterion("avg_pace is null");
            return (Criteria) this;
        }

        public Criteria andAvgPaceIsNotNull() {
            addCriterion("avg_pace is not null");
            return (Criteria) this;
        }

        public Criteria andAvgPaceEqualTo(Long value) {
            addCriterion("avg_pace =", value, "avgPace");
            return (Criteria) this;
        }

        public Criteria andAvgPaceNotEqualTo(Long value) {
            addCriterion("avg_pace <>", value, "avgPace");
            return (Criteria) this;
        }

        public Criteria andAvgPaceGreaterThan(Long value) {
            addCriterion("avg_pace >", value, "avgPace");
            return (Criteria) this;
        }

        public Criteria andAvgPaceGreaterThanOrEqualTo(Long value) {
            addCriterion("avg_pace >=", value, "avgPace");
            return (Criteria) this;
        }

        public Criteria andAvgPaceLessThan(Long value) {
            addCriterion("avg_pace <", value, "avgPace");
            return (Criteria) this;
        }

        public Criteria andAvgPaceLessThanOrEqualTo(Long value) {
            addCriterion("avg_pace <=", value, "avgPace");
            return (Criteria) this;
        }

        public Criteria andAvgPaceIn(List<Long> values) {
            addCriterion("avg_pace in", values, "avgPace");
            return (Criteria) this;
        }

        public Criteria andAvgPaceNotIn(List<Long> values) {
            addCriterion("avg_pace not in", values, "avgPace");
            return (Criteria) this;
        }

        public Criteria andAvgPaceBetween(Long value1, Long value2) {
            addCriterion("avg_pace between", value1, value2, "avgPace");
            return (Criteria) this;
        }

        public Criteria andAvgPaceNotBetween(Long value1, Long value2) {
            addCriterion("avg_pace not between", value1, value2, "avgPace");
            return (Criteria) this;
        }

        public Criteria andMaxPaceIsNull() {
            addCriterion("max_pace is null");
            return (Criteria) this;
        }

        public Criteria andMaxPaceIsNotNull() {
            addCriterion("max_pace is not null");
            return (Criteria) this;
        }

        public Criteria andMaxPaceEqualTo(Long value) {
            addCriterion("max_pace =", value, "maxPace");
            return (Criteria) this;
        }

        public Criteria andMaxPaceNotEqualTo(Long value) {
            addCriterion("max_pace <>", value, "maxPace");
            return (Criteria) this;
        }

        public Criteria andMaxPaceGreaterThan(Long value) {
            addCriterion("max_pace >", value, "maxPace");
            return (Criteria) this;
        }

        public Criteria andMaxPaceGreaterThanOrEqualTo(Long value) {
            addCriterion("max_pace >=", value, "maxPace");
            return (Criteria) this;
        }

        public Criteria andMaxPaceLessThan(Long value) {
            addCriterion("max_pace <", value, "maxPace");
            return (Criteria) this;
        }

        public Criteria andMaxPaceLessThanOrEqualTo(Long value) {
            addCriterion("max_pace <=", value, "maxPace");
            return (Criteria) this;
        }

        public Criteria andMaxPaceIn(List<Long> values) {
            addCriterion("max_pace in", values, "maxPace");
            return (Criteria) this;
        }

        public Criteria andMaxPaceNotIn(List<Long> values) {
            addCriterion("max_pace not in", values, "maxPace");
            return (Criteria) this;
        }

        public Criteria andMaxPaceBetween(Long value1, Long value2) {
            addCriterion("max_pace between", value1, value2, "maxPace");
            return (Criteria) this;
        }

        public Criteria andMaxPaceNotBetween(Long value1, Long value2) {
            addCriterion("max_pace not between", value1, value2, "maxPace");
            return (Criteria) this;
        }

        public Criteria andMinPaceIsNull() {
            addCriterion("min_pace is null");
            return (Criteria) this;
        }

        public Criteria andMinPaceIsNotNull() {
            addCriterion("min_pace is not null");
            return (Criteria) this;
        }

        public Criteria andMinPaceEqualTo(Long value) {
            addCriterion("min_pace =", value, "minPace");
            return (Criteria) this;
        }

        public Criteria andMinPaceNotEqualTo(Long value) {
            addCriterion("min_pace <>", value, "minPace");
            return (Criteria) this;
        }

        public Criteria andMinPaceGreaterThan(Long value) {
            addCriterion("min_pace >", value, "minPace");
            return (Criteria) this;
        }

        public Criteria andMinPaceGreaterThanOrEqualTo(Long value) {
            addCriterion("min_pace >=", value, "minPace");
            return (Criteria) this;
        }

        public Criteria andMinPaceLessThan(Long value) {
            addCriterion("min_pace <", value, "minPace");
            return (Criteria) this;
        }

        public Criteria andMinPaceLessThanOrEqualTo(Long value) {
            addCriterion("min_pace <=", value, "minPace");
            return (Criteria) this;
        }

        public Criteria andMinPaceIn(List<Long> values) {
            addCriterion("min_pace in", values, "minPace");
            return (Criteria) this;
        }

        public Criteria andMinPaceNotIn(List<Long> values) {
            addCriterion("min_pace not in", values, "minPace");
            return (Criteria) this;
        }

        public Criteria andMinPaceBetween(Long value1, Long value2) {
            addCriterion("min_pace between", value1, value2, "minPace");
            return (Criteria) this;
        }

        public Criteria andMinPaceNotBetween(Long value1, Long value2) {
            addCriterion("min_pace not between", value1, value2, "minPace");
            return (Criteria) this;
        }

        public Criteria andStepCountIsNull() {
            addCriterion("step_count is null");
            return (Criteria) this;
        }

        public Criteria andStepCountIsNotNull() {
            addCriterion("step_count is not null");
            return (Criteria) this;
        }

        public Criteria andStepCountEqualTo(Integer value) {
            addCriterion("step_count =", value, "stepCount");
            return (Criteria) this;
        }

        public Criteria andStepCountNotEqualTo(Integer value) {
            addCriterion("step_count <>", value, "stepCount");
            return (Criteria) this;
        }

        public Criteria andStepCountGreaterThan(Integer value) {
            addCriterion("step_count >", value, "stepCount");
            return (Criteria) this;
        }

        public Criteria andStepCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("step_count >=", value, "stepCount");
            return (Criteria) this;
        }

        public Criteria andStepCountLessThan(Integer value) {
            addCriterion("step_count <", value, "stepCount");
            return (Criteria) this;
        }

        public Criteria andStepCountLessThanOrEqualTo(Integer value) {
            addCriterion("step_count <=", value, "stepCount");
            return (Criteria) this;
        }

        public Criteria andStepCountIn(List<Integer> values) {
            addCriterion("step_count in", values, "stepCount");
            return (Criteria) this;
        }

        public Criteria andStepCountNotIn(List<Integer> values) {
            addCriterion("step_count not in", values, "stepCount");
            return (Criteria) this;
        }

        public Criteria andStepCountBetween(Integer value1, Integer value2) {
            addCriterion("step_count between", value1, value2, "stepCount");
            return (Criteria) this;
        }

        public Criteria andStepCountNotBetween(Integer value1, Integer value2) {
            addCriterion("step_count not between", value1, value2, "stepCount");
            return (Criteria) this;
        }

        public Criteria andCadenceIsNull() {
            addCriterion("cadence is null");
            return (Criteria) this;
        }

        public Criteria andCadenceIsNotNull() {
            addCriterion("cadence is not null");
            return (Criteria) this;
        }

        public Criteria andCadenceEqualTo(Integer value) {
            addCriterion("cadence =", value, "cadence");
            return (Criteria) this;
        }

        public Criteria andCadenceNotEqualTo(Integer value) {
            addCriterion("cadence <>", value, "cadence");
            return (Criteria) this;
        }

        public Criteria andCadenceGreaterThan(Integer value) {
            addCriterion("cadence >", value, "cadence");
            return (Criteria) this;
        }

        public Criteria andCadenceGreaterThanOrEqualTo(Integer value) {
            addCriterion("cadence >=", value, "cadence");
            return (Criteria) this;
        }

        public Criteria andCadenceLessThan(Integer value) {
            addCriterion("cadence <", value, "cadence");
            return (Criteria) this;
        }

        public Criteria andCadenceLessThanOrEqualTo(Integer value) {
            addCriterion("cadence <=", value, "cadence");
            return (Criteria) this;
        }

        public Criteria andCadenceIn(List<Integer> values) {
            addCriterion("cadence in", values, "cadence");
            return (Criteria) this;
        }

        public Criteria andCadenceNotIn(List<Integer> values) {
            addCriterion("cadence not in", values, "cadence");
            return (Criteria) this;
        }

        public Criteria andCadenceBetween(Integer value1, Integer value2) {
            addCriterion("cadence between", value1, value2, "cadence");
            return (Criteria) this;
        }

        public Criteria andCadenceNotBetween(Integer value1, Integer value2) {
            addCriterion("cadence not between", value1, value2, "cadence");
            return (Criteria) this;
        }

        public Criteria andStrideIsNull() {
            addCriterion("stride is null");
            return (Criteria) this;
        }

        public Criteria andStrideIsNotNull() {
            addCriterion("stride is not null");
            return (Criteria) this;
        }

        public Criteria andStrideEqualTo(Integer value) {
            addCriterion("stride =", value, "stride");
            return (Criteria) this;
        }

        public Criteria andStrideNotEqualTo(Integer value) {
            addCriterion("stride <>", value, "stride");
            return (Criteria) this;
        }

        public Criteria andStrideGreaterThan(Integer value) {
            addCriterion("stride >", value, "stride");
            return (Criteria) this;
        }

        public Criteria andStrideGreaterThanOrEqualTo(Integer value) {
            addCriterion("stride >=", value, "stride");
            return (Criteria) this;
        }

        public Criteria andStrideLessThan(Integer value) {
            addCriterion("stride <", value, "stride");
            return (Criteria) this;
        }

        public Criteria andStrideLessThanOrEqualTo(Integer value) {
            addCriterion("stride <=", value, "stride");
            return (Criteria) this;
        }

        public Criteria andStrideIn(List<Integer> values) {
            addCriterion("stride in", values, "stride");
            return (Criteria) this;
        }

        public Criteria andStrideNotIn(List<Integer> values) {
            addCriterion("stride not in", values, "stride");
            return (Criteria) this;
        }

        public Criteria andStrideBetween(Integer value1, Integer value2) {
            addCriterion("stride between", value1, value2, "stride");
            return (Criteria) this;
        }

        public Criteria andStrideNotBetween(Integer value1, Integer value2) {
            addCriterion("stride not between", value1, value2, "stride");
            return (Criteria) this;
        }

        public Criteria andAltitudeIsNull() {
            addCriterion("altitude is null");
            return (Criteria) this;
        }

        public Criteria andAltitudeIsNotNull() {
            addCriterion("altitude is not null");
            return (Criteria) this;
        }

        public Criteria andAltitudeEqualTo(Double value) {
            addCriterion("altitude =", value, "altitude");
            return (Criteria) this;
        }

        public Criteria andAltitudeNotEqualTo(Double value) {
            addCriterion("altitude <>", value, "altitude");
            return (Criteria) this;
        }

        public Criteria andAltitudeGreaterThan(Double value) {
            addCriterion("altitude >", value, "altitude");
            return (Criteria) this;
        }

        public Criteria andAltitudeGreaterThanOrEqualTo(Double value) {
            addCriterion("altitude >=", value, "altitude");
            return (Criteria) this;
        }

        public Criteria andAltitudeLessThan(Double value) {
            addCriterion("altitude <", value, "altitude");
            return (Criteria) this;
        }

        public Criteria andAltitudeLessThanOrEqualTo(Double value) {
            addCriterion("altitude <=", value, "altitude");
            return (Criteria) this;
        }

        public Criteria andAltitudeIn(List<Double> values) {
            addCriterion("altitude in", values, "altitude");
            return (Criteria) this;
        }

        public Criteria andAltitudeNotIn(List<Double> values) {
            addCriterion("altitude not in", values, "altitude");
            return (Criteria) this;
        }

        public Criteria andAltitudeBetween(Double value1, Double value2) {
            addCriterion("altitude between", value1, value2, "altitude");
            return (Criteria) this;
        }

        public Criteria andAltitudeNotBetween(Double value1, Double value2) {
            addCriterion("altitude not between", value1, value2, "altitude");
            return (Criteria) this;
        }

        public Criteria andCumulativeClimbIsNull() {
            addCriterion("cumulative_climb is null");
            return (Criteria) this;
        }

        public Criteria andCumulativeClimbIsNotNull() {
            addCriterion("cumulative_climb is not null");
            return (Criteria) this;
        }

        public Criteria andCumulativeClimbEqualTo(Double value) {
            addCriterion("cumulative_climb =", value, "cumulativeClimb");
            return (Criteria) this;
        }

        public Criteria andCumulativeClimbNotEqualTo(Double value) {
            addCriterion("cumulative_climb <>", value, "cumulativeClimb");
            return (Criteria) this;
        }

        public Criteria andCumulativeClimbGreaterThan(Double value) {
            addCriterion("cumulative_climb >", value, "cumulativeClimb");
            return (Criteria) this;
        }

        public Criteria andCumulativeClimbGreaterThanOrEqualTo(Double value) {
            addCriterion("cumulative_climb >=", value, "cumulativeClimb");
            return (Criteria) this;
        }

        public Criteria andCumulativeClimbLessThan(Double value) {
            addCriterion("cumulative_climb <", value, "cumulativeClimb");
            return (Criteria) this;
        }

        public Criteria andCumulativeClimbLessThanOrEqualTo(Double value) {
            addCriterion("cumulative_climb <=", value, "cumulativeClimb");
            return (Criteria) this;
        }

        public Criteria andCumulativeClimbIn(List<Double> values) {
            addCriterion("cumulative_climb in", values, "cumulativeClimb");
            return (Criteria) this;
        }

        public Criteria andCumulativeClimbNotIn(List<Double> values) {
            addCriterion("cumulative_climb not in", values, "cumulativeClimb");
            return (Criteria) this;
        }

        public Criteria andCumulativeClimbBetween(Double value1, Double value2) {
            addCriterion("cumulative_climb between", value1, value2, "cumulativeClimb");
            return (Criteria) this;
        }

        public Criteria andCumulativeClimbNotBetween(Double value1, Double value2) {
            addCriterion("cumulative_climb not between", value1, value2, "cumulativeClimb");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIsNull() {
            addCriterion("is_delete is null");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIsNotNull() {
            addCriterion("is_delete is not null");
            return (Criteria) this;
        }

        public Criteria andIsDeleteEqualTo(Integer value) {
            addCriterion("is_delete =", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotEqualTo(Integer value) {
            addCriterion("is_delete <>", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteGreaterThan(Integer value) {
            addCriterion("is_delete >", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_delete >=", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLessThan(Integer value) {
            addCriterion("is_delete <", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLessThanOrEqualTo(Integer value) {
            addCriterion("is_delete <=", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIn(List<Integer> values) {
            addCriterion("is_delete in", values, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotIn(List<Integer> values) {
            addCriterion("is_delete not in", values, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteBetween(Integer value1, Integer value2) {
            addCriterion("is_delete between", value1, value2, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotBetween(Integer value1, Integer value2) {
            addCriterion("is_delete not between", value1, value2, "isDelete");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}